import request from '@/utils/request'

// 优惠码列表
export function promocodeList(params) {
  return request({
    url: '/mapi/promocode/list',
    method: 'get',
    params
  })
}

// 优惠码详情
export function promocodeInfo(params) {
  return request({
    url: '/mapi/promocode/info',
    method: 'get',
    params
  })
}

// 优惠码编辑
export function promocodeEdit(params) {
  return request({
    url: '/mapi/promocode/edit',
    method: 'post',
    params
  })
}

// 删除
export function promocodeDelete(params) {
  return request({
    url: '/mapi/promocode/delete',
    method: 'post',
    params
  })
}
